package com.xucan.debugx;

public class PublicTestDebug {
   private static int i;
    public static void main(String[] args) {
        System.out.println("main方法启动");
        System.out.println("main方法继续");
        System.out.println("main方法结束");
        inti();

    }

    private static void inti() {

        new Thread(()->{
            System.out.println("线程1启动");
            System.out.println("线程1继续");

        }).start();

        new Thread(()->{
            System.out.println("线程2启动");
            System.out.println("线程2继续");
        }).start();


        for (int j = 0; j < 10; j++) {
            i=i+j;
            i++;
        }
        String  a = null;
        if (a.equals("2")){
            System.out.println("发生了空指针");
        }


    }


}
